import Layout from '@/layout'

const fungusRouter = {
  path: '/fungus',
  component: Layout,
  redirect: '/fungus/type',
  meta: {
    title: '菌类',
    icon: 'fungus'
  },
  children: [{
    path: 'type',
    component: () =>
                import ('@/views/fungus/fungus-type'),
    name: 'FungusType',
    meta: { title: '品种', keepAlive: true }
  },
  {
    path: 'plant',
    component: () =>
                import ('@/views/fungus/fungus-plant'),
    name: 'FungusPlant',
    meta: { title: '种植', keepAlive: true }
  },
  {
    path: 'irrigate',
    component: () =>
                import ('@/views/fungus/fungus-irrigate'),
    name: 'FungusIrriagte',
    meta: { title: '灌溉', keepAlive: true }
  },
  {
    path: 'harvest',
    component: () =>
                import ('@/views/fungus/fungus-harvest'),
    name: 'FungusHarvest',
    meta: { title: '采收', keepAlive: true }
  },
  {
    path: 'produce',
    component: () =>
                import ('@/views/fungus/fungus-produce'),
    name: 'FungusProduce',
    meta: { title: '加工', keepAlive: true }
  },
  {
    path: 'storage',
    component: () =>
                import ('@/views/fungus/fungus-storage'),
    name: 'FungusStorage',
    meta: { title: '储存', keepAlive: true }
  }
  ]
}
export default fungusRouter
